<?php
class Search_model extends CI_Model {


	function search_trip($from,$to){
		$this->load->database();
		$query = "select * from tripinfo where dest = ? and origin = ?";
		$result = $this->db->query($query,array($to,$from));
		return $result;
	}
}
?>